package com.yfp.operation.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 订单排序列表状态枚举
 */
@Getter
@AllArgsConstructor
public enum OrderVOStateEnums {
    /**
     * 是
     */
    YES("YES", "是"),
    /**
     * 否
     */
    NO("NO", "否");

    private String status;
    private String name;

    public static String getName(String status) {
        for (PackageStatusEnums c : PackageStatusEnums.values()) {
            if (c.getStatus().equals(status)) {
                return c.getName();
            }
        }
        return null;
    }
}
